﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MODEL;
using DAL;

namespace BLL
{
   public  class PinglunBLL
    {
       PinglunDAL dal = new PinglunDAL();
       public List<PinglunModel> QueryByCondition(StudentModel model)
       {
           return dal.QueryByCondition(model);
       }

       public bool AddNewPinglun(string toSid, string txtContent, string fromSid)
       {
            int i =  dal.AddNewPinglun(toSid, txtContent, fromSid);
            if (i > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
       }
    }
}
